import request from '@/utils/request'

// 查询leaveForm列表
export function listLeaveForm(query) {
    return request({
        url: '/training/leaveForm/list',
        method: 'get',
        params: query
    })
}

// 查询leaveForm详细
export function getLeaveForm(id) {
    return request({
        url: '/training/leaveForm/' + id,
        method: 'get'
    })
}

// 新增leaveForm
export function addLeaveForm(data) {
    return request({
        url: '/training/leaveForm',
        method: 'post',
        data: data
    })
}

// 修改leaveForm
export function updateLeaveForm(data) {
    return request({
        url: '/training/leaveForm',
        method: 'put',
        data: data
    })
}

// 删除leaveForm
export function delLeaveForm(id) {
    return request({
        url: '/training/leaveForm/' + id,
        method: 'delete'
    })
}

// 导出leaveForm
export function exportLeaveForm(query) {
    return request({
        url: '/training/leaveForm/export',
        method: 'get',
        params: query
    })
}